package com.scau.XFourPOS.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**     
 * 类名称：ProductColor
 * 类描述：产品颜色的model表
 * 创建人：庄祥鹏
 * */
@Entity
@Table(name = "product_color")
public class ProductColor {
	/**
	 * 产品颜色id
	 */
	@Id
	@Column(name="product_color_id",unique=true,nullable=false )
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private int productColorId;

	/**
	 * 产品所属的颜色
	 */
	@Column(name="product_color",unique=true,nullable=false,length = 20)
	private String productColor;

	public int getProductColorId() {
		return productColorId;
	}

	public void setProductColorId(int productColorId) {
		this.productColorId = productColorId;
	}

	public String getProductColor() {
		return productColor;
	}

	public void setProductColor(String productColor) {
		this.productColor = productColor;
	}
	
}
